package com.coolgor.coldot.entity.auth;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户操作痕迹实体类
 * 用于记录用户访问及操作痕迹的信息
 * 
 * @author CoolGor
 *
 */
public class OperationTrace {
	private Long recordID;		
	private Long userID;
	private String username;
	private String nameCN;
	private Long roleID;
	private String roleName;
	private String source;
	private String target;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date actionTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date lastTime;
	private String operation;
	private String remark;
	public Long getRecordID() {
		return recordID;
	}
	public void setRecordID(Long recordID) {
		this.recordID = recordID;
	}
	public Long getUserID() {
		return userID;
	}
	public void setUserID(Long userID) {
		this.userID = userID;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getNameCN() {
		return nameCN;
	}
	public void setNameCN(String nameCN) {
		this.nameCN = nameCN;
	}
	public Long getRoleID() {
		return roleID;
	}
	public void setRoleID(Long roleID) {
		this.roleID = roleID;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public Date getActionTime() {
		return actionTime;
	}
	public void setActionTime(Date actionTime) {
		this.actionTime = actionTime;
	}
	public Date getLastTime() {
		return lastTime;
	}
	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}
	public String getOperation() {
		return operation;
	}
	public void setOperation(String operation) {
		this.operation = operation;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Override
	public String toString() {
		return "OperationTrace [recordID=" + recordID + ", userID=" + userID + ", username=" + username + ", nameCN="
				+ nameCN + ", roleID=" + roleID + ", roleName=" + roleName + ", source=" + source + ", target=" + target
				+ ", actionTime=" + actionTime + ", lastTime=" + lastTime + ", operation=" + operation + ", remark="
				+ remark + "]";
	}
	
}
